package com.jf.cloud.api.platform.feign;

import com.jf.cloud.api.platform.vo.SysAccessKeyVO;
import com.jf.cloud.common.feign.FeignInsideAuthConfig;
import com.jf.cloud.common.response.ServerResponseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author FrozenWatermelon
 * @date 2020/11/23
 */
@FeignClient(value = "jfcloud-platform",contextId = "sysAccessKey")
public interface SysAccessKeyClient {


    /**
     * 根据账号id获取信息
     * @param accessId
     * @return
     */
    @GetMapping(value = FeignInsideAuthConfig.FEIGN_INSIDER_URL_PREFIX + "/sysAccessKey/getByAccessId")
    ServerResponseEntity<SysAccessKeyVO> getByAccessId(@RequestParam("accessId") String accessId);

}
